export default {
    allChecked (state) {
        return state.cartItemList.every(item => item.checked)
    },
    someChecked (state) {
        return state.cartItemList.some(item => item.checked)
    },
    totalItemCount (state) {
        return state.cartItemList.reduce((count, item) => {
            count += item.count
            return count
        }, 0)
    }
}
